/**
 * Created by Administrator on 2016/12/15.
 */
$(function () {
    $(".spanss1").click(function () {
        $(this).css({"background": "#FF3366", "color": "#FFFFFF"});
        $(this).siblings().css({"background": "#F2F2F2", "color": "black"});
    });
    $("#logo_top_center_one_span1").click(function () {
        $("#logo_top_center_two_text").attr("placeholder", "");

    });
    $("#logo_top_center_one_span").click(function () {
        $("#logo_top_center_two_text").attr("placeholder", "冬天的时髦先从一件毛衣开始吧");

    });
    //$(".header_lis").mouseover(function () {
    //    $(this).prev().child().css({"border-bottom": "none"});
    //});
    //$("#header_top_left ul li").mouseout(function(){
    //sada
    //    $(this).prev().css({"border-bottom":""});
    //});
        var span4=parseInt($("#header_bottom_span4").html());
        var span3=$("#header_bottom_span3").html();
        var span2=$("header_bottom_span2").html();
        var span1=$("header_bottom_span1").html();
        var timer;
        function run() {
            span4--;
            if(span4<0){
                span4=59;
                span3--;
                if(span3<0){
                    span3=59;
                    span2--;
                    if(span2<0){
                        span2=23;
                        span1--;
                    }
                }
            }
            $("#header_bottom_span4").html(span4);
            $("#header_bottom_span3").html(span3);
            $("#header_bottom_span2").html(span2);
            $("#header_bottom_span1").html(span1);

            timer=setTimeout(run,1000);
        }
            run();
});